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	0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,7,3,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,7,3,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,7,3,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,7,3,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,3,3,1,1,0,0,0,0,0,0,0,0,0,
	0,0,0,0,7,7,7,7,7,7,3,3,1,1,0,0,0,
	0,0,0,0,0,0,1,1,3,3,7,7,7,7,7,7,7,
	0,0,0,0,0,0,0,0,0,0,0,0,1,1,3,3,7,
	0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
	0,3,1,0,7,7,7,0,0,0,0,0,0,0,0,0,0,
	0,3,7,7,7,7,7,0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,7,7,7,0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,7,7,7,0,0,0,0,0,0,0,0,0,0,
	0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
);


my @testfont = (
    29, 22, 15, 8,  0,
	30, 23, 16, 9,  1,
	31, 24, 17, 10, 3,
	32, 25, 18, 11, 4,
	33, 26, 19, 12, 5,
	34, 27, 20, 13, 6,
	35, 28, 21, 14, 7
	);
	    

# 387 rows, each with 17 column
my @font_flipped;

my $rows = 387;
my $columns = 17;
my $counter = 0; 

	# 387 rows, each with 17 column
	for (my $x = ($columns-1); $x >= 0 ; $x--)	# Vertical counter in new array
	{
		for (my $y = 0; $y < $rows; $y++) # 387
		{	
			$font_flipped[$counter] = $font_original[($x)+($y*$columns)];
			$counter++;
		}  
	}
		
  # Debugging output	
	for (my $y = 0; $y < ($columns-1) ; $y++)
	{
		for (my $x = 0; $x < ($rows-1); $x++)
		{
			print $font_flipped[$x+($y*$rows)].",";
		}
	print "\n";
	}


# We have 59 characters, in order of ASCII value, all 17 lines tall, with differing width
my $d = 14; 	# DUMMY replace later
my $char = $ARGV[0];
my $offset; 
my $width; 
my $char_pos = ord($char) - 49;

my @offset = (
#	0  1  2  3  4  5  6  7  8  9  0  !  @  #  $  & 
	$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,

#|||A  B   C   D   E   F   G   H   I   J   K   L  M     N    O    P    Q    R    S    T    U    V    W    X    Y    Z
	0, 9, 18, 27, 36, 45, 51, 60, 69, 75, 81, 89, 93, 107, 116, 126, 135, 144, 150, 159, 165, 174, 181, 192, 201, 209 
  );
my @width = (
	$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,$d,
	10, 9,  9,  9, 9,  7,  9,  9,  4,  7,  9,  4, 14,   9,  10,   9,   9,   7,   9,   6,   9,   8,  12,   9,   9,   8
  );
	
print "You entered $char\n";
print "ASCII : ".ord($char)."\n";
print "Position in character array: $char_pos\n";
print "Offset: $offset[$char_pos]\n";
print "Width: $width[$char_pos]\n";

print "";



	for (my $y = 0; $y < 17; $y++)	# All character are 17 lines tall
	{
		for (my $x = 0; $x < $width[$char_pos]-1; $x++) # Width must be prerecorded
		{
			print $font_flipped[$offset[$char_pos] + $x + ($y * 387)] if ($font_flipped[$offset[$char_pos] + $x + ($y * 387)] != 0);
			print "\ " if ($font_flipped[$offset[$char_pos] + $x + ($y * 387)] == 0);
		}
	print "|\n";
	}